package com.example.haoqisystem.respository;

import com.example.haoqisystem.entity.Teacher;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface TeacherRepository extends JpaRepository<Teacher,Long>, JpaSpecificationExecutor<Teacher> {
    Optional<Teacher> findByAccountAndDeletedFalse(String account);

    Optional<Teacher> findByIdAndDeletedFalse(Long id);
}
